<?php

namespace app\api\validate;

use think\Validate;
use app\api\model\TieBa AS TieBaModel;

class TieBa extends Validate
{
    protected $rule = [
        'typeId' => 'require|number',
        'content' => 'require',
        'isDraft' => 'in:' . TieBaModel::DRAFT_NO . ',' . TieBaModel::DRAFT,
    ];

    protected $message = [
        'content' => '必须输入内容哦',
        'isDraft' => '草稿类型错误',
    ];
}